<?php defined('IN_ADMIN') or exit('No permission resources.');?>
<?php include $this->admin_tpl('header', 'admin');?>
<script type="text/javascript">
$(document).ready(function() {
	$.formValidator.initConfig({
		formid: "myform",
		autotip: true,
		onerror: function(msg, obj) {
			window.top.art.dialog({
				content: msg,
				lock: true,
				width: '200',
				height: '50'
			})
		}
	});
	$("#name").formValidator({
		onshow: "<?php echo L('input')."视频集名称"?>",
		onfocus: "<?php echo L('input')."视频集名称"?>"
	}).inputValidator({
		min: 1,
		onerror: "<?php echo L('input')."视频集名称"?>"
	});





});
</script>
<div class="pad-10">

	<form name="myform" action="?m=<?php echo ROUTE_M;?>&c=<?php echo ROUTE_C;?>&a=<?php echo ROUTE_A;?>"  method="post"
		id="myform" enctype="multipart/form-data">
		<input type="hidden" name="data[contest_id]" value="<?=$data['contest_id']?>">
		<input type="hidden" name="id" value="<?=$id?>">

		<div class="content pad-10" id="show_div_1" style="height: auto">
			<fieldset>
				<legend><?php echo "视频集信息"?></legend>
				<table width="100%" class="table_form">
					<tr>
						<td width="120"><?php echo "视频集名称"?>：</td>
						<td><input type="text" name="data[name]" id="name"
							class="input-text" value="<?= isset($data['name'])?$data['name']:""?>" /></td>
					</tr>

					<tr>
						<td width="120"><?php echo "封面图片"?>：</td>

						<td><?php echo form::images('data[image_cover]', 'image_cover', isset($data['image_cover'])?$data['image_cover']:"", 'contest', '', 40)?></td>
					</tr>


					<tr>
						<td width="120"><?php echo "描述"?>：</td>
						<td><textarea rows="10" cols="80" name="data[description]"
								id="description"><?php if(isset($data['description']) ) { echo $data['description'];}?></textarea>
						</td>
					</tr>


				</table>
			</fieldset>


		</div>
		<div class="bk15"></div>
		<input type="submit" class="dialog" id="dosubmit" name="dosubmit"
			   value="<?php echo L('submit')?>" />

	</form>

</div>
</body>
</html>